export let mv_all = {
  namespaced: true,
  state: {
    mv_all_data: {},
  },
  actions: {
    getMvAllData(store, data = {}) {
      let url = "/mv/all?limit=" + data.limit + "&offset=" + (data.page - 1) * data.limit + "&area=" + data.area + "&order=" + data.order + "&type=" + data.type;
      return new Promise((resolve, reject) => {
        axios.get(url).then(({
          data
        }) => {
          store.commit("setMvAllData", data);
          resolve(data)
        });
      })

    },
  },
  mutations: {
    setMvAllData(state, data) {
      state.mv_all_data = data;
    },
  }
}
